home *** CD-ROM | disk | FTP | other *** search
/ IRIX Patches 1995 March / SGI IRIX Patches 1995 Mar.iso / 5.3_patches / patchSG0000221 / patchSG0000221.idb / usr / include / dbm.h.z / dbm.h
Encoding:
C/C++ Source or Header  |  1995-03-10  |  1.8 KB  |  64 lines

  1. #ifndef __DBM_H__
  2. #define __DBM_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #ident "$Revision: 1.6 $"
  7. /*
  8. *
  9. * Copyright 1992, Silicon Graphics, Inc.
  10. * All Rights Reserved.
  11. *
  12. * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  13. * the contents of this file may not be disclosed to third parties, copied or
  14. * duplicated in any form, in whole or in part, without the prior written
  15. * permission of Silicon Graphics, Inc.
  16. *
  17. * RESTRICTED RIGHTS LEGEND:
  18. * Use, duplication or disclosure by the Government is subject to restrictions
  19. * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  20. * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  21. * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  22. * rights reserved under the Copyright Laws of the United States.
  23. */
  24. /*
  25.  * Copyright (c) 1980 Regents of the University of California.
  26.  * All rights reserved.  The Berkeley software License Agreement
  27.  * specifies the terms and conditions for redistribution.
  28.  *
  29.  *    @(#)dbm.h    5.2 (Berkeley) 85/06/26
  30.  */
  31.  
  32. #ifndef NULL
  33. /*
  34.  * this is lunacy, we no longer use it (and never should have
  35.  * unconditionally defined it), but, this whole file is for
  36.  * backwards compatability - someone may rely on this.
  37.  */
  38. #define    NULL    ((char *) 0)
  39. #endif
  40.  
  41. #include "ndbm.h"
  42.  
  43. int    dbminit(const char *);
  44. datum    fetch(datum);
  45. int    store(datum, datum);
  46. int    delete(datum);
  47. datum    firstkey(void);
  48. datum    nextkey(datum);
  49. void    dbmclose(void);
  50. #if (defined(_SGI_SOURCE) && !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE) && !defined(_ABI_SOURCE))
  51.  
  52. int    dbminit64(const char *);
  53. datum    fetch64(datum);
  54. int    store64(datum, datum);
  55. int    delete64(datum);
  56. datum    firstkey64(void);
  57. datum    nextkey64(datum);
  58. void    dbmclose64(void);
  59. #endif
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63. #endif /* !__DBM_H__ */
  64.